<?php
namespace Tbf\Bundle\TbfBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;

abstract class TbfCommand extends ContainerAwareCommand{
    protected function get($name)
    {
        return $this->getContainer()->get($name);
    }
    /**
     * @return \Doctrine\Bundle\DoctrineBundle\Registry
     */
    protected function getDoctrine()
    {
        return $this->get('doctrine');
    }
    /**
     * @return \Doctrine\DBAL\Connection;
     */
    protected function getDbalConnection()
    {
        return $this->get('database_connection');
    }
}